﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.DAO;
using Com.CMS263.PO;

namespace Com.CMS263.BLL
{
   public class UserOrderBLL:BaseBLL<UserOrder>
    {
       public UserOrder entity = new UserOrder();

       public override UserOrder GetModel()
        {
            return entity;
        }
       UserOrderDAO dao = new UserOrderDAO();
       public bool Add(UserOrder uo)
       {
           return dao.Add(uo);
           
       }

       public UserOrder GetUserOrderById(int id)
       {
          return  dao.GetUserOrderById(id);
        }

      

       public UserOrder GetUserOrderByUserId(int userId)
       {
           return dao.GetUserOrderByUserId(userId);
       }

       public bool Update(UserOrder uo)
       {
           return dao.UpDate(uo);
       }

       public IList<UserOrder> GetListByStyleAndState(int guimoid, int state, int page, int pagesize)
       {
           return dao.GetListByStyleAndState(guimoid, state, page, pagesize);
       }
       public int GetListByStyleAndState(int guimoid, int state)
       {
           return dao.GetListByStyleAndState(guimoid, state);
       }
       public bool EditOrderState(string ids, int state)
       {
           return dao.EditOrderState(ids, state);
       }
    }
}
